package com.spzx.channel.controller;

import com.spzx.channel.service.BrandService;
import com.spzx.common.core.web.domain.AjaxResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Haoran Sun
 * @since 2024/07/24
 */

@Tag(name = "商品品牌")
@RestController
@RequestMapping(value = "/brand")
public class BrandController {

    @Resource
    private BrandService brandService;

    @Operation(summary = "获取全部品牌")
    @GetMapping(value = "getBrandAll")
    public AjaxResult selectBrandAll() {
        return AjaxResult.success(brandService.getBrandAll());
    }

}
